﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master" CodeBehind="wfUbigeoBnd.aspx.cs" Inherits="MG.wfUbigeoBnd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
 <base target="_self" />
   <script type="text/javascript">
       window.onload = function () {
           this.ResizeGrid();
           this.MessageOnPostback();
       }

       function ResizeGrid() {
           internalGridResize("<%= grdList.ClientID %>");
       }

       function rowDblClick(rowIndex) {
           var row = getGridRowByIndex('<%= grdList.ClientID %>', rowIndex);
           var objValues = [];
           objValues[0] = getObjInnerText(row.cells[0]);
           objValues[1] = getObjInnerText(row.cells[1]);
           objValues[2] = getObjInnerText(row.cells[2]);
           objValues[3] = getObjInnerText(row.cells[3]);
           objValues[4] = getObjInnerText(row.cells[4]);
           objValues[5] = getObjInnerText(row.cells[5]);
           objValues[6] = getObjInnerText(row.cells[6]);
           objValues[7] = getObjInnerText(row.cells[7]);
           window.returnValue = objValues;
           window.close();
       }

   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <div class="DataHeader">
         <table id="TableDataHeader" cellpadding="0" cellspacing="0">
            <tr><td colspan="11" >&nbsp;</td></tr>
            <tr>
               <td style=" width:10px;" >             
                  &nbsp;
               </td>
               <td>
                    Ingrese el lugar a buscar :
               </td>
               <td>
                   <esd:esdTextBox runat="server" ID="txtdsDescripcion" Width="350px"></esd:esdTextBox> 
               </td>
               <td style=" width:30px;" >
                  &nbsp;
               </td>
               <td>
                   <esd:esdButton ID="bttClear" runat="server" Text="Limpiar" Width="80px">
                   </esd:esdButton> 
               </td>
               <td style=" width:10px;" >
                  &nbsp;
               </td>
            </tr>
            <tr><td colspan="6" >&nbsp;</td></tr>
            <tr>
                <td colspan="4">
                    &nbsp;
                </td>
                <td>
                   <esd:esdButton ID="bttSearch" Runat="server" Text="Buscar" Width="80px" OnClick="bttOk_Click">
                   </esd:esdButton>
                </td>
                <td style=" width:10px;" >
                  &nbsp;
               </td>
            </tr>
            <tr><td colspan="6" >&nbsp;</td></tr>
         </table>
    </div>
    <div class="DataDetail">
       <esd:esdGridView CssClass="esdGridView" ID="grdList" runat="server" ScrollWidth="100%"
            Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="" OnRowCreated="grdList_RowCreated">
            <Columns>
            <asp:BoundField DataField="idPais" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
            </asp:BoundField>
            <asp:BoundField DataField="dsPais" HeaderText="Pais"></asp:BoundField>
            <asp:BoundField DataField="idDepa" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
            </asp:BoundField>
            <asp:BoundField DataField="dsDepa" HeaderText="Departamento"></asp:BoundField>
            <asp:BoundField DataField="idProv" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
            </asp:BoundField>
            <asp:BoundField DataField="dsProv" HeaderText="Provincia"></asp:BoundField>
            <asp:BoundField DataField="idDist" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
            </asp:BoundField>
            <asp:BoundField DataField="dsDist" HeaderText="Distrito"></asp:BoundField>
            </Columns> 
            <EmptyDataTemplate>
            <div id="gridempty">
                <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                &nbsp;No existen registros para esta solicitud.
            </div>
            </EmptyDataTemplate>
        </esd:esdGridView>
      </div> 
</asp:Content>